-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arc - Validate whether interceptors declare producer methods #31348
Arc - Validate whether interceptors declare producer methods #31348
Conversation
Actually, just noticed that there is also a disposer method validation, I'll add that as well momentarily. EDIT: Disposer method presence is now detected as well. |
d46b786
to
b3671d1
Compare
This comment has been minimized.
This comment has been minimized.
independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorInfo.java
Outdated
Show resolved
Hide resolved
independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorInfo.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the rest of InterceptorInfo
ignores the AnnotationStore
as well, I think we can merge this as is and fix it all in a subsequent PR.
I agree that in general we should query the BTW I wonder if Weld does throw a definition exception if a portable extension modifies an interceptor class and adds |
It's not just |
+1 but it's IMO a very low priority. |
b3671d1
to
4c25b68
Compare
…ng Jandex directly
@Ladicek I've added a commit that delegates annotation queries to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for sure :-)
This comment has been minimized.
This comment has been minimized.
Failing Jobs - Building 174b2c6
Full information is available in the Build summary check run. Failures⚙️ Maven Tests - JDK 11 #- Failing: integration-tests/maven
📦 integration-tests/maven✖
✖
⚙️ Maven Tests - JDK 11 Windows #- Failing: integration-tests/maven
📦 integration-tests/maven✖
✖
|
|
Part of #28558
Simple fix that validated interceptors during
InterceptorInfo
creation to validate whether there are any producer methods/fields and throws definition exception if that's the case.The exception looks something like this: